<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- <link rel="stylesheet" href="../css/register.css"> -->
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.1/jquery.js"></script>
    <script src="../js/register.js"></script>
    <script>
        function register(){
            $.ajax({
                url:"http://localhost:3000/api/login",
                type:'post',
                data:{
                    userVerCode:$('#userVerCode').val(),
                    userMobile:$('#userMobile').val()
                },
                success:function(res){
                    if(res.message == 'ok'){
                        alert('登录成功！')
                    }else{
                        alert('登录失败！')
                    }
                    console.log('res:',res)
                }
            })
        }
    </script>
</head>
<body>
    <!-- http://localhost:5501/html/register.html -->
    <button id="btndivzong">登录</button>
    <div class="divzong">
        <h2>登录/注册</h2>
        <div class="diva">
            <a href="">使用密码验证登录</a>
        </div>
        <div class="inputdiv1">
            <div class="inputem">
                <em>+86</em>
            </div>
            <input type="text" name="userMobile" id="userMobile" placeholder="请输入网易手机账号" class="input1">
        </div>
        <div class="inputdiv1">
            <div class="inputem2">
                <em>→</em>
            </div>
            <input type="text" name="" id="" placeholder="向右拖动滑块填充拼图" class="input1">
        </div>
        <div class="inputdiv1">
            <input type="text" name="" id="userVerCode" placeholder="请输入短信验证码" class="input2">
            <div class="inputem3">
                <a href="">获取验证码</a>
            </div>
        </div>
        <div class="inputdiv2">
            <input type="button" value="注册" onclick="register()">
            <a href="">登录/注册</a>
        </div>
        <input type="checkbox" name="">十天内免登录<br>
        <input type="checkbox" name="">我同意《用户需要》、《隐私政策》、《第三方服务共享清单》</p>
    </div>
    <div class="mask"></div>
</body>
</html>